import random
power = 1
dayup = 0.01
week = 0
for i in range(365):
    if i % 7 in [0, 1, 2]:
        pass
    if i % 7 in [3, 4, 5, 6]:
        power = power * (1 + dayup)
        if i % 7 in [6]:
            week += 1
print('连续学习365天后的能力值为{:.3f}'.format(power))
print('连续周期数为{}'.format(week))